#ifndef ACTIONS_H
#define ACTIONS_H

#include "ftrigger.hpp"

struct s_action
{
  int id;
  void (*action)(struct s_ft_request *ack, void *data);
};

void invalid_request(struct s_ft_request *ack, void *data);
void add_file(struct s_ft_request *ack, void *data);
void add_directory(struct s_ft_request *ack, void *data);
void set_file_ctn(struct s_ft_request *ack, void *data);
void send_file_ctn(struct s_ft_request *ack, void *data);
void rm_file(struct s_ft_request *ack, void *data);
void rm_directory(struct s_ft_request *ack, void *data);

#endif
